package com.moxiao.yfjh.module.activity.common;

import com.moxiao.yfjh.framework.common.util.md5.Md5Utils;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.UUID;

/**
 * @version 1.0
 * @Author zhk
 * @Date 2024/1/30 13:48
 **/

@Service
public class GenerateVerificateCode {

    public String genVerificateCode(){
        UUID uuid = UUID.randomUUID();
        String randomNumber = uuid.toString().replace("-", "").substring(0, 8);
        return Md5Utils.EncodeByMD5(randomNumber);
    }


}
